<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./index.css">
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: salmon;
        }

        .box2 {
            width: 200px;
            height: 200px;
            background-color: black;
        }
    </style>
</head>

<body>
    <div class="box">
        首页结构
    </div>
    <script>
        const box = document.querySelector('.box')
        box.addEventListener('click', function () {
            console.log(111);
        })
    </script>
</body>

</html>